package ru.iasokolov.demo.entity.address

import jakarta.persistence.Entity
import jakarta.persistence.Table
import ru.iasokolov.demo.entity.AbstractBaseEntity
import java.time.LocalDate
import java.util.*

@Entity
@Table(name = "address")
class Address(
    id: UUID,
    startDate: LocalDate,
    endDate: LocalDate,
    deleted: Boolean,
    dataType: String,

    val data: AddressData
) : AbstractBaseEntity(
    id = id,
    startDate = startDate,
    endDate = endDate,
    deleted = deleted,
    dataType = dataType
)
